﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaiduAPI.Weather
{
    /// <summary>
    /// 天气信息类
    /// </summary>
    public class WeatherClass
    {
        public string city = ""; 


        public string pinyin = ""; //"beijing", //城市拼音
        public string citycode = ""; //;"101010100",  //城市编码	
        public string date = ""; //"15-02-11", //日期
        public string time = ""; //"11:00", //发布时间
        public string postCode = ""; //"100000", //邮编
        public double longitude = 0; // 116.391, //经度
        public double latitude = 0; //39.904, //维度
        public string altitude = ""; // "33", //海拔	
        public string weather = ""; // "晴",  //天气情况
        public string temp = ""; // "10", //气温
        public string l_tmp = ""; // "-4", //最低气温
        public string h_tmp = ""; // "10", //最高气温
        public string WD = ""; // "无持续风向",	 //风向
        public string WS = ""; // "微风(<10m/h)", //风力
        public string sunrise = ""; // "07:12", //日出时间
        public string sunset = ""; // "17:44" //日落时间

        public string[] strWeatherName = new[]
        {
            "晴", "多云", "阴", "阵雨", "雷阵雨", "雷阵雨伴有冰雹", "雨夹雪", "小雨", "中雨", "大雨", "暴雨", "大暴雨", "特大暴雨", "阵雪", "小雪", "中雪", "大雪",
            "暴雪", "雾", "冻雨", "沙尘暴", "小到中雨", "中到大雨", "大到暴雨", "暴雨到大暴雨", "大暴雨到特大暴雨", "小到中雪", "中到大雪", "大到暴雪", "浮尘", "扬沙",
            "强沙尘暴", "霾"
        };
    }
}
